package us.fourdesign.zptjob.Activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LoginActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.login);
		// //Textview设置超链接
		// TextView visitor = (TextView) findViewById(R.id.visitor);
		// TextView about = (TextView) findViewById(R.id.about);
		// SpannableString visitorsp = new SpannableString(visitor.getText());
		// visitorsp.setSpan(new URLSpan("http://www.baidu.com"), 0, 4,
		// Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		// SpannableString aboutsp = new SpannableString(about.getText());
		// aboutsp.setSpan(new URLSpan("http://www.google.com"), 0, 4,
		// Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		//
		// // SpannableString对象设置给TextView
		// visitor.setText(visitorsp);
		// // 设置TextView可点击
		// visitor.setMovementMethod(LinkMovementMethod.getInstance());
		// about.setText(aboutsp);
		// about.setMovementMethod(LinkMovementMethod.getInstance());
		Button loginButton = (Button) findViewById(R.id.login);
		loginButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(new Intent(LoginActivity.this, MainActivity.class));
			}
		});
		Button registButton = (Button)findViewById(R.id.regist);
		registButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(new Intent(LoginActivity.this, RegistActivity.class));
			}
		});
	}

}
